package VLSys;



import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class ReportsModule extends JPanel {
        private JLabel title = new JLabel();
	JButton pindutan[] = new JButton[6];
        ImageIcon exp1 = new ImageIcon("images/reports_module/expenses_1.png");
        ImageIcon exp2 = new ImageIcon("images/reports_module/expenses_2.png");
        ImageIcon finRep1 = new ImageIcon("images/reports_module/financial_report_1.png");
        ImageIcon finRep2 = new ImageIcon("images/reports_module/financial_report_2.png");
        ImageIcon serv1 = new ImageIcon("images/reports_module/services_1.png");
        ImageIcon serv2 = new ImageIcon("images/reports_module/services_2.png");
        ImageIcon trans1 = new ImageIcon("images/reports_module/transactions_1.png");
        ImageIcon trans2 = new ImageIcon("images/reports_module/transactions_2.png");
        ImageIcon user1 = new ImageIcon("images/reports_module/users_1.png");
        ImageIcon user2 = new ImageIcon("images/reports_module/users_2.png");
        ImageIcon veh1 = new ImageIcon("images/reports_module/vehicles_1.png");
        

public ReportsModule(){
        setVisible(false);
        setLayout(null);
        title.setText("Managerial Module");
        title.setFont(new Font("Calibri", Font.BOLD, 25));
        setBackground(Color.white);
	int i;
         for(i=0;i<=5;i++)
        {
            pindutan[i] = new JButton();
            pindutan[i].setContentAreaFilled(false);
        }
	pindutan[0].setIcon(exp1);
        pindutan[0].setRolloverIcon(exp2);
        pindutan[1].setIcon(finRep1);
        pindutan[1].setRolloverIcon(finRep2);
        pindutan[2].setIcon(serv1);
        pindutan[2].setRolloverIcon(serv2);
        pindutan[3].setIcon(trans1);
        pindutan[3].setRolloverIcon(trans2);
        pindutan[4].setIcon(user1);
        pindutan[4].setRolloverIcon(user2);
        pindutan[5].setIcon(veh1);

        pindutan[0].setBounds(280,5,90,22);
        pindutan[1].setBounds(135,5,150,22);
        pindutan[2].setBounds(365,5,80,22);
        pindutan[3].setBounds(10,5,120,22);
        pindutan[4].setBounds(450,5,70,22);
        pindutan[5].setBounds(510,5,110,22);

                 for(i=0;i<=5;i++)
                {
                   add(pindutan[i]);
                   pindutan[i].setBorderPainted(false);
                }
                
    }
}
